<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="references/js/jquery-2.1.0.min.js"></script>
<script src="references/js/jquery.dataTables.js"></script>
<link href="references/css/jquery.dataTables.new.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
	<tiles:insertTemplate template="/pages/masterpage/masterPage.jsp">
		<tiles:putAttribute name="body">
		<table id="myTable" style="width: 100%">
				<thead>
					<tr>
						<th>Project ID</th>
						<th>Name</th>
						<th>Date Create</th>
						<th>Status</th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					<logic:iterate id="listProject" name="listProject">
						<tr>
							<td><bean:write name="listProject" property="projectId" /></td>
							<td><logic:equal name="listProject" property="status" value="0">
							<html:link
									action="/viewMember.jms?projectId=${listProject.projectId}">
									<bean:write name="listProject" property="name" />
								</html:link>
							</logic:equal>
							<logic:equal name="listProject" property="status" value="1">
							<bean:write name="listProject" property="name" />
							</logic:equal>
							</td>
							<td><bean:write name="listProject" property="datecreate" /></td>
							<td><bean:write name="listProject" property="status" /></td>
						
							
							<td>
								
								<logic:equal name="listProject" property="status" value="0">
									<html:link
									action="/closeProject?projectId=${listProject.projectId}">Close Project</html:link>
								</logic:equal>
								
								</td>
						</tr>
					</logic:iterate>
				</tbody>
			</table>
<script>
		$('#myTable').dataTable({
			"sPaginationType" : "full_numbers"

		});
</script>
		
		
		</tiles:putAttribute>
		</tiles:insertTemplate>
		
		

</body>
</html>